<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="create_listing"}</td>
            </tr>
        </table>
        {$jsValMess}
        <div style="padding-left: 30px; font-size: 10pt;"><b>{messages template='_blocks/errors_block.html'}</b></div>
        <div style="padding-left:20px;font-size:10pt;" class="color">
            <form method="post" action="{$sUrl}" onsubmit="{$jsValidation}">
                <table style="width:100%;" cellspacing="2" cellpadding="4" border="0">
                <tr>
                    <td style="text-align:right;" class="color"><span class="star">*</span> {language text="subject"}:</td>
                    <td class="border13">
                        <input type="text" name="aList[title]" size="40" maxlength="30" value="{$aList.title|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;" class="color">{language text="category_145"}:</td>
                    <td class="border13">
                        <select name="aList[category]" style="width:150px;">
                            {html_options options=$aCatHash selected=$iCurentCat}
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;" class="color">{language text="country"}:</td>
                    <td class="border13">
                        <select name="aList[location]" style="width:150px;"{if getParam('us_states')} onchange="checkUsMode(true);" id="fldCountrySel"{/if}>
                        	<option value="">{language text="option.select"}</option>
                            {html_options options=$aCountry selected=$aList.location}
                        </select>
                    </td>
                </tr>
                {if getParam('us_states')}
                <tr>
                    <td style="text-align:right;" class="color">{language text="state"}:</td>
                    <td class="border13">
                        <select name="aList[state]" style="width:150px;" id="fldStateSel">
                        	<option value="">{language text="option.select"}</option>
                            {html_options options=$aState selected=$aList.state}
                        </select>
                    </td>
                </tr>
                {/if}
                <tr>
                    <td style="text-align:right;" class="color"><span class="star">*</span> {language text="city"}:</td>
                    <td class="border13">
                        <input type="text" name="aList[city]" size="20" maxlength="30" value="{$aList.city|escape}"  onfocus="this.className='inputmain';" onblur="this.className='';" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <span class="star">*</span> {language text="description"}:
                        <span style="font-size:7pt;">
                            <a class="link_action" href="javascript:void(0);" onclick="popUp2('{url link=public.popup.help}','500','500','yes','200','100');">[ {language text="html_help"} ]</a>
                        </span>
                        <div style="padding:5px;">
                            <textarea style="width:100%" cols="50" rows="15" name="aList[text]">{$aList.text}</textarea>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><span class="star">*</span> - {language text="mandatory_fields"}</td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                    <input name="act[btnCreate]" type="submit" value=" {if $bIsEdit}{language text="edit"}{else}{language text="create_568"}{/if} {language text="listing"} " class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
                    {if $bIsEdit}
                        <span style="padding-left:10px;font-size:8pt;">
                            <a class="link_action" href="{url link=public.listing.view id=$aList.id del=1}" onclick="if(!sure('{language text="are_you_sure_you_want_to_delete_thi"}'))return false;">[ {language text="cancel_this_listing"} ]</a>
                        </span>
                    {/if}
                    </td>
                </tr>
                </table>
            </form>
        </div>
    </td>
</tr>
</table>
{if getParam('us_states')}<script type="text/javascript">checkUsMode(true);</script>{/if}